package com.yuexunit.operationman.nbsy.module.nurse;

import android.content.Context;
import android.content.res.Resources;

import com.yuexunit.operationman.nbsy.R;
import com.yuexunit.operationman.nbsy.module.nurse.Bean.NurseBean;

import java.util.ArrayList;

/**
 * Created by work-jx on 2017/7/24.
 */
public class NurseContracts {
    public static final ArrayList<NurseBean.ObjectEntity.NursingItemListEntity> nursingItemListEntities(Context context)
    {
        Resources res =context.getResources();
        String[] languages = res.getStringArray(R.array.nursing);
        ArrayList<NurseBean.ObjectEntity.NursingItemListEntity> nursingItemListEntities = new ArrayList<>();
        for(int i = 0; i<languages.length;i++)
        {
            NurseBean.ObjectEntity.NursingItemListEntity nursingItemListEntity = new NurseBean.ObjectEntity.NursingItemListEntity();
            nursingItemListEntity.setItemCode(languages[i]);
            nursingItemListEntity.setItemValue("");
            nursingItemListEntity.setItemName("");
            nursingItemListEntity.setNursingItemId("");
            nursingItemListEntity.setNursingId("");
            nursingItemListEntity.setItemOther("");
            nursingItemListEntities.add(nursingItemListEntity);
        }
        return nursingItemListEntities;
    };


    public static final NurseBean.ObjectEntity.AnaesthesiaEntity anaesthesisaEntity(Context context)
    {
        NurseBean.ObjectEntity.AnaesthesiaEntity anaesthesisaEntity = new NurseBean.ObjectEntity.AnaesthesiaEntity();
        anaesthesisaEntity.setAnaesthesiaId("");
        anaesthesisaEntity.setNursingId("");
        anaesthesisaEntity.setDrugDesc("");
        anaesthesisaEntity.setAnesthetist("");
        anaesthesisaEntity.setAnesthesiaStartTime("");
        anaesthesisaEntity.setAnesthesiaEndTime("");
        anaesthesisaEntity.setCircuitDoctor("");
        anaesthesisaEntity.setBeforeOperationDesc("");
        anaesthesisaEntity.setOperationStartTime("");
        anaesthesisaEntity.setOperationEndTime("");
        anaesthesisaEntity.setOperationDoctor("");
        anaesthesisaEntity.setDrugDrain("");
        anaesthesisaEntity.setAfterOperationDesc("");
        anaesthesisaEntity.setDoctorAdvice("");
        anaesthesisaEntity.setCreateTime("");
        anaesthesisaEntity.setStatus("");
        return anaesthesisaEntity;
    };

    public static final ArrayList<NurseBean.ObjectEntity.NursingItemListEntity> nursingItemListEntities_new(Context context)
    {
        Resources res =context.getResources();
        String[] languages = res.getStringArray(R.array.nursing);
        ArrayList<NurseBean.ObjectEntity.NursingItemListEntity> nursingItemListEntities = new ArrayList<>();
        for(int i = 0; i<languages.length;i++)
        {
            NurseBean.ObjectEntity.NursingItemListEntity nursingItemListEntity = new NurseBean.ObjectEntity.NursingItemListEntity();
            nursingItemListEntity.setItemCode(languages[i]);
            nursingItemListEntity.setItemName("");
            nursingItemListEntity.setNursingItemId("");
            nursingItemListEntity.setNursingId("");
            nursingItemListEntity.setItemOther("");
            switch (languages[i]) {
                case "BP_Time":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "BP_BingRenHeDui":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "BP_ShouShuBuWeiHeDui":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "BP_ShenZhi":
                    nursingItemListEntity.setItemValue(";;");
                    break;
                case "BP_ShenJingMaiChuanCi":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "BP_JingMaiShuYe":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "BP_WeiGuan":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "BP_DaoNiaoGuan":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "BP_Skin":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "BP_YaoWuGuoMing":
                    nursingItemListEntity.setItemValue(";;");
                    break;
                case "BP_ShouShuShi":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "SP_TiWei":
                    nursingItemListEntity.setItemValue(";;;;;;;;");
                    break;
                case "SP_ZhiXueDai":
                    nursingItemListEntity.setItemValue(";;;;");
                    break;
                case "SP_ZhiRuWu":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "SP_ZhiRuWuSign":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "SP_ShouShuBiaoBen_BingDongQiePian":
                    nursingItemListEntity.setItemValue(";;");
                    break;
                case "SP_ShouShuBiaoBen_ChangGuiQiePian":
                    nursingItemListEntity.setItemValue(";;");
                    break;
                case "SP_ShouShuBiaoBen_other":
                    nursingItemListEntity.setItemValue(";;");
                    break;
                case "SP_YinLiuWu":
                    nursingItemListEntity.setItemValue(";;;");
                    break;
                case "SP_MaZuiZhongLei":
                    nursingItemListEntity.setItemValue(";;;");
                    break;
                case "AP_ShouShuMingChen":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "AP_YiShiQingKuang":
                    nursingItemListEntity.setItemValue(";;");
                    break;
                case "AP_ShuHouSongHui":
                    nursingItemListEntity.setItemValue(";;;");
                    break;
                case "AP_LiShiShiJian":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "AP_Skin":
                    nursingItemListEntity.setItemValue(";");
                    break;
                case "AP_JunBao":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "AP_JunBaoJianCe":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "AP_ShuHouZhenDuan":
                    nursingItemListEntity.setItemValue("");
                    break;
//                case "AP_Sign":
//                    nursingItemListEntity.setItemValue("");
//                    break;
//                case "BP_Over_Sign":
//                    nursingItemListEntity.setItemValue("");
//                    break;
                case "SP_Over_Sign":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "AP_Over_Sign":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "WJB_Doctor_Sign":
                    nursingItemListEntity.setItemValue("");
                    break;
                case "WJB_Nurse_Sign":
                    nursingItemListEntity.setItemValue("");
                    break;
                default:
                    nursingItemListEntity.setItemValue("");
                    break;
            }
            nursingItemListEntities.add(nursingItemListEntity);
        }
        return nursingItemListEntities;
    };
}
